import request from '@/common/utils/request'

/**
 * 获取-权限点列表
 * @returns
 */
export const getSysPermissionApi = () => {
    return request({
        url: '/sys/permission',
        method: 'GET',

    })
}

/**
 * 获取-权限点详情
 * @returns
 */
export const getSysPermissionIdApi = (id: string) => {
    return request({
        url: `/sys/permission/${id}`,
        method: 'GET',
    })
}